package com.gk.bean.qfdto;


import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
@Slf4j
@Data
public class GuoYaoCommon {
    /**
     * 从配置文件里读取
     * 注意是$变量引入
     */
    @Value("${guoyao.common.hzid}")
    private String hzid;
    @Value("${guoyao.common.ckid}")
    private String ckid;
    public static String GoodsOwnerId = "";
    public static String gstarageid = "";
    @PostConstruct
    public void setGoodsOwnerId() {
        log.error("执行了PostConstruct方法");
        GoodsOwnerId = this.hzid;
        gstarageid = this.ckid;
    }


}
